package cn.itcast.company.impl;


import cn.itcast.company.CompanyService;
import cn.itcast.dao.company.CompanyDao;
import cn.itcast.domain.company.Company;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    private CompanyDao companyDao;

    @Override
    public List<Company> findAll() {

        List<Company> list = companyDao.findAll();
        return list;

    }
}
